#include "myGraphAdjacency.h"

myGraphAdMatrix::myGraphAdMatrix(int count):m_count(count)
{
	m_admatrix = vector<vector<int>>(count, vector<int>(count,INT_MAX));
}
myGraphAdMatrix::myGraphAdMatrix(T node[][3], int count, int len) :m_count(count)
{
	m_admatrix = vector<vector<int>>(count, vector<int>(count, INT_MAX));
	for (int i = 0; i < len; i++) {
		m_admatrix[node[i][0]][node[i][1]] = node[i][3];
	}
	for (int i = 0; i < m_count; i++) {
		m_admatrix[i][i] = 0;
	}
}
void myGraphAdMatrix::build(T node[][3], int n) {
	for (int i=0;i<n;i++) {
		m_admatrix[node[i][0]][node[i][1]] = node[i][3];
	}
	for (int i=0;i<m_count;i++) {
		m_admatrix[i][i] = 0;
	}
}
void myGraphAdMatrix::dfs() {

}
void myGraphAdMatrix::bfs() {

}